<?php
/*
 *author:Yangligao
 *Date:2013-10-4
 */


class MenuModel{
	
	private $tableName = 'foodmenu';
	
	function menu_insert($arr){
		return Db::insert($this->tableName, $arr);
	}
	
	function menu_select($columList='*',$where='',$limit='',$order='',$group=''){
		return Db::select($this->tableName, $columList,$where,$limit,$order,$group);
	}
	
	function menu_update($arr){
		
		return Db::update($this->tableName, $arr, "menu_id");
	}
	
	function menu_delete($arr){
		
		return Db::delete($this->tableName, $arr);
	}
	function menu_deleteMoreByKey($keyArr){
			
		return db::deleteMoreByKey($this->tableName, $keyArr, "menu_id");
	}
}
?>
